import request from '@/utils/request'
// -------- 帮助 --------

let BASE_ADDRESS = '/doc/helps'

// 修改
export function getHelpsEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 分页查询
export function getHelpsListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 添加帮助设置
export function getHelpsAddApi(data) {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "POST",
        data
    })
}

// 删除帮助
export function getHelpsRemoveApi(id) {
    return request({
        url: `${BASE_ADDRESS}/remove?id=${id}`,
        method: "DELETE",

    })
}